package com.example.qxfw.dlqx.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.qxfw.common.entity.zy.PowerRatio;
import com.example.qxfw.dlqx.mapper.PowerRatioMapper;
import com.example.qxfw.dlqx.service.PowerRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PowerRatioServiceImpl implements PowerRatioService {

    @Autowired
    private PowerRatioMapper powerRatioMapper;

    @Override
    public List<PowerRatio> listByMonth(String month) {
        return powerRatioMapper.selectList(Wrappers.<PowerRatio>lambdaQuery()
                .eq(PowerRatio::getMonth,month));
    }
}
